# $OpenBSD: Makefile,v 1.18 2017/01/03 19:29:36 landry Exp $

COMMENT=		nagios status monitor for the Desktop

MODPY_EGG_VERSION=	2.0
DISTNAME=		Nagstamon-${MODPY_EGG_VERSION}
PKGNAME=		${DISTNAME:L}
WRKDIST=		${WRKDIR}/Nagstamon
REVISION=		0

CATEGORIES=		x11 net

HOMEPAGE=		http://nagstamon.ifw-dresden.de/

MAINTAINER=		Nicolas P. M. Legrand <nlegrand@ethelred.fr>

# GPLv2
PERMIT_PACKAGE_CDROM=	Yes

MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=nagstamon/}

PKG_ARCH=		*

MODULES=		lang/python

MODPY_VERSION=		${MODPY_DEFAULT_VERSION_3}
MODPY_SETUPTOOLS=	Yes

BUILD_DEPENDS=		x11/py-qt5${MODPY_FLAVOR}

RUN_DEPENDS=		devel/desktop-file-utils \
			sysutils/py-psutil${MODPY_FLAVOR} \
			www/py-beautifulsoup4${MODPY_FLAVOR} \
			www/py-requests${MODPY_FLAVOR} \
			x11/py-qt5${MODPY_FLAVOR}

NO_TEST=		Yes

post-install:
	cd ${PREFIX}/bin && mv nagstamon.py nagstamon
	gunzip ${PREFIX}/man/man1/nagstamon.1.gz

.include <bsd.port.mk>
